import axios from '../AjaxUtil.js'
import url from './url'

axios.defaults.withCredentials = false;

export default {

  // 测试
  test(params) {
    return axios.post(url.test, params)
  },
  //幸运转盘信息
  luckWhellInfo(params){
    return axios.post(url.luckWhellInfo, params)
  },
  //幸运转盘点击开始
  luckTableClickBegin(params){
    return axios.post(url.luckTableClickBegin, params)
  },

  //开心博饼信息
  moonBattleAwardInfo(params){
    return axios.post(url.moonBattleAwardInfo, params)
  },
  //开心博饼点击开始
  moonBattleClickBegin(params){
    return axios.post(url.moonBattleClickBegin, params)
  },

  //随缘摇奖信息
  autoWinDrawInfo(params){
    return axios.post(url.autoWinDrawInfo, params)
  },
  //随缘摇奖点击开始
  autoWinClickBegin(params){
    return axios.post(url.autoWinClickBegin, params)
  },

  //好文共读分类
  articleGetArticlecate(params){
    return axios.post(url.articleGetArticlecate, params)
  },
  //文章详情
  articleGetArticledetail(params){
    return axios.post(url.articleGetArticledetail, params)
  },
  //文章列表
  articleGetArticlelist(params){
    return axios.post(url.articleGetArticlelist, params)
  },
  //有效阅读获取工分
  articleSetScore(params){
    return axios.post(url.articleSetScore, params)
  },

  //获取微信授权url
  wechatWechatOauth(params){
    return axios.post(url.wechatWechatOauth, params)
  },
  //授权登陆后获取用户的信息
  wechatGetWechatUser(params){
    return axios.post(url.wechatGetWechatUser, params)
  },
  //绑定手机号验证码发送
  userSendVerifyCode(params){
    return axios.post(url.userSendVerifyCode, params)
  },
  //绑定手机号
  userBindMobile(params){
    return axios.post(url.userBindMobile, params)
  },
  //绑定手机配置页
  userConfig(params){
    return axios.post(url.userConfig, params)
  },
}
